package com.shop.service;

import java.io.Serializable;
import java.util.List;

import com.shop.entity.Product;
import com.shop.entity.ProductCategory;

public interface ProductService {
	
List<Product> findAllProduct();
	
	//根据商品类型查询商品
	List<Product> selectProductByType(ProductCategory productCategory);

	Serializable addProduct(Product product);
	
	Serializable deleteProduct(Product product);
	
	Serializable updateProduct(Product product);
	
	Product selectProduct(Product product);
	
	//总记录数
	int count(ProductCategory productCategory);
	//每页的数据
	List<Product> selectProductByTypePage(ProductCategory productCategory , int pageindex, int pagesize);

}
